//
//  SS_WebNewsController.swift
//  SSNews
//
//  Created by 叶竞泽 on 2017/5/1.
//  Copyright © 2017年 叶竞泽. All rights reserved.
//

import UIKit

class SS_WebNewsController: UIViewController {
    
    var url: String?
    
    @IBOutlet weak var webView: UIWebView!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        loadData()
    }
    
    deinit {
        print("deinit...SS_WebNewsController")
    }
    
    private func loadData() {
        guard let urlString = url else {
            return
        }
        guard let url = URL(string: urlString) else {
            return
        }
        let request = URLRequest(url: url)
        webView.loadRequest(request)
    }

}
